package com.xilihui.xlh.business.requests;

import com.xilihui.xlh.business.entities.JoinStoreEntity;
import com.xilihui.xlh.core.app.BaseEntity;


import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2018/7/5.
 */

public interface JoinShopService {
    
    //提交加入门店
    @FormUrlEncoded
    @POST("/api/agent/join_agent")
    Observable<BaseEntity> joinShop(
            @Field("access_token") String access_token,
            @Field("id") String id
    );
    
    //获取门店
    @FormUrlEncoded
    @POST("/api/agent/join_agent_index")
    Observable<JoinStoreEntity> getShop(
            @Field("access_token") String access_token,
            @Field("page") int page
    );
    
    
    
    
}
